﻿#define _CRT_SECURE_NO_WARNINGS//获取一个整数二进制序列中所有的偶数位和奇数位，分别打印出二进制序列
#include<stdio.h>
int main()
{
	int m = 0;
	scanf("%d", &m);
	//11
	//00000000000000000000000000001011
	int i = 0;
	//偶数位
	printf("偶数位：");
	for (i = 31; i >= 1; i -= 2)
	{
		printf("%d ", (m >> i) & 1);
	}
	printf("\n");
	//奇数位
	printf("奇数位：");
	for (i = 30; i >= 0; i -= 2)
	{
		printf("%d ", (m >> i) & 1);
	}
	return 0;

}